package cn.shrek.mapper;

import cn.shrek.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 查询全部
     *
     * @return
     */
    List<User> findAll();
    User queryUserByUserName(@Param("user_name")String user_name);
}